package rpa

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-api/infrastructure/dto/rpa"
)

type ByaiRepositoryIface interface {
	// 获取白应token
	GetByaiToken(ctx context.Context, companyId int64, appId, serect string) (string, error)
	// 获取AI外呼任务详情, https://open.byai.com/document/get_229
	GetByaiTaskDetail(ctx context.Context, callJobId int64, companyId int64) (*rpa.GetByaiTaskData, error)
	// 获取AI任务列表, https://open.byai.com/document/list_226
	GetByAiTaskList(ctx context.Context, callJobStatus int8, companyId int64, createDate, endDate, jobName string, pageNum, pageSize int64) (*rpa.GetByAiTaskListData, error)
	// 删除ai任务, https://open.byai.com/document/delete_222
	DeleteByAiTask(ctx context.Context, callJobId int64, companyId int64) (bool, error)
	// 执行ai任务, https://open.byai.com/document/execute_221
	ExecuteByAiTask(ctx context.Context, callJobId int64, companyId int64, command int32) (bool, error)
	// 向任务中导入客户
	ImportCustomerToTask(ctx context.Context, callJobId int64, companyId int64, customerInfo []*rpa.CustomerInfoItem) (bool, error)
	// ai外呼任务更新
	UpdateByAiTask(ctx context.Context, params *rpa.ByAiTask) (bool, error)
	//创建ai外呼任务
	CreateByAiTask(ctx context.Context, params *rpa.ByAiTask) (int64, error)
}
